package com.fang.config.beanInitialize;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author Fang Ruichuan
 * @date 2022-12-27 9:17
 */
@Component
public class DoByPostConstructAnnotation {

    public DoByPostConstructAnnotation() {
        System.out.println("DoByPostConstructAnnotation constructor");
    }

    @PostConstruct
    public void init() {
        System.out.println("InitByPostConstructAnnotation do something");
    }
}
